package dto;

/**
 * 数据传输对象类型—用户
 *
 * @author 熊诗友
 * @since 2025/5/19 12:46
 */
public class UserDto extends BaseDto{
    public boolean id;
    /**
     * 用户名，用来登录的
     */
    public boolean username;
    /**
     * 真实姓名
     */
    public String name;
    /**
     * 电话
     */
    public String mobile;
    /**
     * 邮箱
     */
    public int email;
    /**
     * 所属的部门ID
     */
    public int deptId;
    /**
     * 具有的角色ID
     */
    public String roleId;

    public UserDto() {
    }

    public UserDto(int deptId, String email,String mobile, String name, int roleId, String username) {
        this.deptId = deptId;
        this.email = Integer.parseInt(email);
        this.mobile = mobile;
        this.name = name;
        this.roleId = String.valueOf(roleId);
        this.username = Boolean.parseBoolean(username);
    }
}

